function Call_Excelexport() {
    let optionJson = [];
    // $("#resultcoll  tr").html("");
    let start_time = $("input[name='start_time']").val();
    let end_time = $("input[name='end_time']").val();
    let keyword = $("input[name='calling_num']").val();
    let   phone_num = {"table_name":"通话记录导出表","callrecord_complete":"callrecord_complete","start_time":start_time,"end_time":end_time,"calling_num":keyword}
    $.ajax({
        type:"post",
        url:"http://127.0.0.1:8000/get_call_record_complete/",
        data:phone_num,
        async: false,
        success:function (call_record_complete_info) {
            //   console.log(call_record_complete_info);
            optionJson=call_record_complete_info;//后台传过来的JSon对象
            //输出base64编码
            //要导出的json数据
            const jsonData =call_record_complete_info.data;
            //列标题，逗号隔开，每一个逗号就是隔开一个单元格
            let str = `主叫电话,被叫电话,开始通话时间,持续通话时间,所在城市\n`;
            //增加\t为了不让表格显示科学计数法或者其他格式
            for(let i in jsonData ){
                for(let item in jsonData[i]){
                    str+=`${jsonData[i][item] + '\t'},`;
                }
                str+='\n';
            }
            //encodeURIComponent解决中文乱码
            let uri = 'data:text/csv;charset=utf-8,\ufeff' + encodeURIComponent(str);
            //通过创建a标签实现
            let link = document.createElement("a");
            link.href = uri;
            //对下载的文件命名
            link.download =  "用户通话记录表.xls";
            document.body.appendChild(link);
            link.click();
            document.body.removeChild(link);
        }
    });
}
